
import Flutter
import UIKit

class T3SelectAddressTool: NSObject {
    var channel: FlutterMethodChannel?
    static let shared = T3SelectAddressTool()

    func callSelectAddress(params: [String: Any], callBack: (([String : Any]?) -> Void)?) {
//    print("callSelectAddress --- \(channel)")
        channel?.invokeMethod("selectAddress", arguments: params, result: { object in
            if let dic = object as? [String : Any] {
                callBack?(dic)
            }else {
                callBack?(nil)
                print("数据类型错误")
            }
        })
    }
}
